<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { getToken } from "@/utils/auth";
export default {
  data() {
    return {
      alarList: [],
      token: "",
    };
  },
  created() {
    if (getToken()) {
      this.Sevice({
        url: "sys/menu/nav",
        method: "get",
      })
        .then((res) => {
          if (res && res.code == 200) {
            sessionStorage.setItem("menuArr", JSON.stringify(res.menuList));
          }
        })
        .catch((err) => {
          console.log(err);
        });
    }
  },
  methods: {},
};
</script>

<style lang="scss">
@font-face {
  font-family: yjsz;
  src: url("assets/font/yjsz.TTF");
  // url('assets/font/yjsz.eot'); /* IE9+,可以是具体的实际链接 */
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.el-select {
  width: 100%;
}

// 自定义进度条颜色
#nprogress .bar {
  background: #f811b2 !important; //自定义颜色
}

::v-deep .el-table__fixed-right {
  height: 100% !important;
}
</style>
